#include <iostream>
#define AC 0
#define RUN_OK 140
#define TLE 150
#define MLE 152
#define WA 153
#define PE 154
#define OLE 156
using namespace std;
int main(int argc, char* argv[])
{
    string eps;
    // 题目中的eps选项将被作为第一个参数传入spj程序
    if (argc > 1) {
        eps = string(argv[1]);
    }
    int ans;
    int limit = 10;
    cin >> ans;
    while (limit--) {
        string op;
        int x;
        cin >> op >> x;
        cerr << op << " " << x << endl;
        if (op == "?") {
            if (x < ans) {
                cout << "<" << endl;
            } else if (x > ans) {
                cout << ">" << endl;
            } else {
                cout << "=" << endl;
            }
        } else if (op == "!") {
            if (x == ans) {
                cout << "np" << endl;
                return AC;
            } else {
                cout << "zhubi" << endl;
                return WA;
            }
        } else {
            cout << "format error" << endl;
            return PE;
        }
    }
    cout << "output limit exceed" << endl;
    return OLE;
}